package com.lexed.demo;

import java.util.Scanner;

/*
 * 练习6
 * 使⽤前⾯的Student
 *		 让⽤户输⼊学⽣的信息
 *		 创建学⽣对象
 *		 打印这个学⽣对象的信
 */
public class Test6 {

	public static void main(String[] args) {
		// 1. 创建对象
		Student s1 = new Student();
		// 2. 输入信息
		Scanner sc = new Scanner(System.in);
		System.out.println("请输入学生学号：");
		s1.sid = sc.nextInt();
		System.out.println("请输入学生姓名：");
		s1.name = sc.next();
		System.out.println("请输入学生语文成绩：");
		s1.chinese = sc.nextInt();
		System.out.println("请输入学生数学成绩：");
		s1.math = sc.nextInt();
		System.out.println("请输入学生外语成绩：");
		s1.english = sc.nextInt();
		// 3. 设置方法
		s1.printStudentInformation();
	}

}
